package com.person.jiaiplan.assembler;

import com.person.jiaiplan.pojo.dto.AchievementQueryReqDTO;
import com.person.jiaiplan.pojo.dto.AchievementQueryResDTO;
import com.person.jiaiplan.pojo.dto.AchievementShowVo;
import com.person.jiaiplan.pojo.entity.AchievementLogs;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper
public interface AchievementLogsAssembler {

    AchievementLogsAssembler INSTANCE = Mappers.getMapper(AchievementLogsAssembler.class);

    List<AchievementQueryResDTO> toAchievementQueryReqDTOList(List<AchievementLogs> list);

    AchievementLogs toAchievementLogs(AchievementQueryReqDTO reqDTO);

    List<AchievementShowVo> toAchievementShowVoList(List<AchievementLogs> achievementLogsList);
}
